﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="editlevel2.aspx.cs" Inherits="pro_mis_level_editlevel2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <div id="content">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                SelectCommand="SELECT indicatorid, indicatorname, description FROM indicator WHERE (ruleid = @ruleid)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ruleid" QueryStringField="ruleid" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" DataKeyNames="indicatorid" DataSourceID="SqlDataSource1" 
                ForeColor="#333333" GridLines="None" Width="100%" Font-Size="12px">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:TemplateField InsertVisible="False" SortExpression="indicatorid" ItemStyle-Width="5">
                        <EditItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("indicatorid") %>' Visible="false"></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("indicatorid") %>' Visible="false"></asp:Label>
                        </ItemTemplate>

<ItemStyle Width="5px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:BoundField DataField="indicatorname" HeaderText="指标" 
                        SortExpression="indicatorname" ItemStyle-Width="258px" >
<ItemStyle Width="258px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="description" HeaderText="描述" 
                        SortExpression="description" ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="已选等级">
                        <ItemTemplate>
                            <asp:Label ID="lb_cur" runat="server" Text="无"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="80px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="选择等级" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:DropDownList ID="ddl_level" runat="server">
                            </asp:DropDownList>
                        </ItemTemplate>

<ItemStyle HorizontalAlign="Center" Width="100px"></ItemStyle>
                    </asp:TemplateField>
                </Columns>
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    当前准则下没有相应的指标，请联系组织管理员尽快完善。
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
            <br />
            <hr style="color: #3399FF" />
            <div style="text-align: center">
                <asp:ImageButton ID="ImageButton1" runat="server" 
                    ImageUrl="~/images/submit.gif" onclick="ImageButton1_Click" />
            </div>
        </div>
    
    </div>
    </form>
</body>
</html>
